/**
* ...
* @author Default
* @version 0.1
*/
import com.thelab.ui.*;
dynamic class com.thelab.ui.HitArea extends UIElement
{	
	var _ui;
	var _areaWidth:Number;
	var _areaHeight:Number;
	var _offX:Number;
	var _offY:Number;
	public function HitArea(scope:MovieClip,ui,px:Number,py:Number,width:Number,height,off_x:Number,off_y:Number)
	{		
		super("UIHitArea",scope);		
		_ui = ui;
		target._x = px || 0;
		target._y = py || 0;
		_areaWidth = width || 10;
		_areaHeight = height || 10;
		_offX = off_x || 0;
		_offY = off_y || 0;
		draw();
	}	
	
	private function update_style()
	{		
		draw();
	}	
	function draw()
	{		
		
		target.clear();		
		target.beginFill(0x0,0);
		rectangle(_offX,_offY,_areaWidth,_areaHeight);
		target.endFill();
	}
	
}